/*
 * @Description:
 * @Author: Bart 1714877505@qq.com
 * @Date: 2025-04-27
 * @LastEditors: Bart 1714877505@qq.com
 * @LastEditTime: 2025-04-27
 */
import request from '/@/api/request'
/** 获取币对管理列表 */
export const requestCoinPairList = (data: LanuchTypes.IRequest) => {
  return request.post<IPaginationResponse<LanuchTypes.IResponse[]>>('/open-integration/exchange/coinPair/list/V1', data)
}

/** 添加积分 */
export const requestAddcoinPair = (coinSymbol: string) => {
  return request.get<IBaseResponse<string>>('/open-integration/exchange/coinPair/save/V1', { coinSymbol })
}

/** 获取币对详情 */
export const requestGetcoinPair = (pairId: any) => {
  return request.get<IBaseResponse<LanuchTypes.IResponse>>('/open-integration/exchange/coinPair/get/V1', { pairId })
}

/** 获取详情页-币对管理币种列表 */
export const requestGetCoinSymbols = (pairId: any) => {
  return request.get<IBaseResponse<LanuchTypes.IResponse[]>>('/open-integration/exchange/coinPair/getCoinSymbols/V1', { pairId })
}

/** 编辑币对管理 */
export const requestUpdateCoinPair = (data: LanuchTypes.UpdateCoinPair) => {
  return request.post<IBaseResponse<string>>('/open-integration/exchange/coinPair/update/V1', data)
}
